#ifndef __CN_MEDIA_S3C6410_NET_SINK_FILTER_H__
#define __CN_MEDIA_S3C6410_NET_SINK_FILTER_H__

#include "SinkFilter.h"
#include "MediaTask.h"
#include "InputPin.h"

#include "Poco/NotificationQueue.h"

namespace cm_media
{

    class S3C6410NetSinkInputPin: public InputPin 
    {
    public:
        int receive(ByteBuffer* p_data);
    
    };

    class S3C6410NetSinkFilter: public SinkFilter, public MediaTask
    {
    public:
        S3C6410NetSinkFilter();
        ~S3C6410NetSinkFilter();

        int setup();
        int teardown();

        int enqueueBuffer(ByteBuffer* p_buffer);
        void run();

    private:
        bool m_stopFlag;
        InputPin* m_inputPin;

        NotificationQueue m_frameQ;
    };
}

#endif